<template>
  <div class="dashboard-container">
    <div class="full-screen-image">
      <el-image
        :src="outSide"
        :zoom-rate="1.2"
        :max-scale="7"
        :min-scale="0.2"
        :initial-index="0"
        fit="fill"
        class="full-screen-img"
      />
    </div>
  </div>
</template>

<script setup lang="ts">
const outSide = ref(new URL("../../../assets/images/cleanVegetable.png", import.meta.url).href);
</script>

<style lang="scss" scoped>
.dashboard-container {
  position: relative;
  padding: 24px;

  .full-screen-image {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 88vw;
    height: 88vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .full-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片的宽高比并填充整个容器 */
  }

  .github-corner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    border: 0;
  }
}
</style>
